/*****************************************************************************
 *
 *                      HUSONG PROPRIETARY INFORMATION
 *
 *          The information contained herein is proprietary to HUSONG
 *           and shall not be reproduced or disclosed in whole or in part
 *                    or used for any design or manufacture
 *              without direct written authorization from HUSONG.
 *
 *            Copyright (c) 2015 by HUSONG.  All rights reserved.
 *
 *****************************************************************************/
package me.send.data.service.service;

import java.util.List;

import me.send.data.service.mapper.CommaddressMapper;
import me.send.data.service.pojo.Commaddress;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author maxmin
 *
 * @date 2015年10月26日 上午11:45:12
 */
@Service
public class CommAddressService {
	@Autowired
	CommaddressMapper commaddressMapper;
	
	public List<Commaddress> getCommAddressList(int userid){
		return 	commaddressMapper.list_userid(userid);
	}
	
	public void addCommAddress(Commaddress commaddress){
		commaddressMapper.save(commaddress);
	}
	
	public Commaddress getCommAddressById(Integer id) {
        return commaddressMapper.getCommAddressById(id);
    }
}
